#include "ResourcePtr.h"
#include "Resource.h"

namespace Display
{
	ResourcePtr::ResourcePtr(Resource * resource)
	{
		this->resoruce = resource;
		this->resoruce->AddRef();
	}


	ResourcePtr::~ResourcePtr(void)
	{
		this->resoruce->DeRef();
		this->resoruce = nullptr;
	}

	Resource * ResourcePtr::Get()
	{
		return resoruce;
	}
}